package com.rushb.rushbproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.rushb.rushbproduct.entity.dto.DeleteProductDto;
import com.rushb.rushbproduct.entity.dto.InsertProductDto;
import com.rushb.rushbproduct.entity.Product;
import com.rushb.rushbproduct.entity.dto.SelectProductDto;
import com.rushb.rushbproduct.entity.dto.UpdateProductDto;
import com.rushb.rushbproduct.result.Result;

import java.util.List;

/**
 * <p>
 * rush-b</n>
 * ProductService
 * </p>
 *
 * @author zhaolun.li
 * @since 2020/11/30 17:03
 */
public interface ProductService extends IService<Product> {

    Result<List<Product>> selectAllProduct();

    Result<List<Product>> selectProduct(SelectProductDto product);

    Result<String> insertProduct(InsertProductDto product);

    Result<String> updateProduct(UpdateProductDto product);

    Result<String> deleteProduct(DeleteProductDto product);
}
